package com.study.demo.gsbean.demo1;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author: elvin
 * @time: 2019-04-17 17:02
 * @desc:
 **/
public class MyFactoryBean implements FactoryBean<Man> {

    private Man man;

    public Man getObject() throws Exception {
        man = new Man();
        man.setName("mingcheng");
        return man;
    }

    public Class<?> getObjectType() {
        return null;
    }

    public boolean isSingleton() {
        return true;
    }
}
